package com.rc.saas.tenant.service.hlht;

import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.hlht.HlhtTenantOpenforMapper;
import com.rc.saas.tenant.model.hlht.HlhtTenantOpenfor;
import com.rc.saas.tenant.model.hlht.HlhtTenantOpenforExample;
import com.rc.saas.tenant.search.hlht.HlhtTenantOpenforSearch;

import java.util.List;

/**
 * Create by Yang on 2021/6/22
 */
public interface HlhtTenantOpenforService extends BaseService<Long, HlhtTenantOpenfor, HlhtTenantOpenforExample, HlhtTenantOpenforMapper> {

    PageInfo<HlhtTenantOpenfor> listPageHlhtTenantOpenfor(HlhtTenantOpenforSearch hlhtTenantOpenforSearch);

    HlhtTenantOpenfor selectTenantOpenforByGunNo(String tenantCode, String gunNo);

    HlhtTenantOpenfor listByHlhtOperatorId(String tenantCode, String hlhtOperatorId);

    int deleteByElecStationIds(List<Long> elecStationIds, String tenantCode, String hlhtTenantCode);

    void updateOpenforStatusByStationIds(List<Long> elecStationIds, String hlhtOperatorId, String openforStatus);

    int deleteByHlhtElecStationIds(List<Long> hlhtElecStationIds, String tenantCode, String hlhtTenantCode);

    int insertByElecStationIds(List<Long> hlhtElecStationIds, String tenantCode, String hlhtTenantCode, List<String> hlhtOperatorIds);

    void updateOpenforStatus(List<Long> hlhtElecStationIds, String hlhtOperatorId, String tenantCode);
}
